<%@page import="com.xbk.jtable.ui.jForm"%>
<%@page import="com.xbk.jtable.ui.jTableUtil"%>
<%@page import="com.xbk.platform.DataMap"%>
<%@page import="com.xbk.util.StringUtil"%>
<%@page import="com.xbk.jtable.ui.Widget"%>
<%@page import="com.xbk.jtable.ui.jTable"%>
<%@page import="com.xbk.platform.DaoUtil"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@include file="/Include/include.jspf"%>
<style type="text/css">
</style>
<%
	DaoUtil du = ConnectionMananger.getDaoUtil();
	String sTableName = request.getParameter("TableName");
	
	String jtableData = "";
	DataMap inter = new DataMap(); 
	
	String sSql = "SELECT COLUMN_NAME AS 字段,NVL(COMMENTS,COLUMN_NAME) 字段中文名 FROM USER_COL_COMMENTS WHERE TABLE_NAME = 'CLASS5'";
	jTable jtable = new jTable(du);
	jtable.setRelativeTable("NULL");
	jtable.initBySql(sSql);
	jtable.setHeader(du.getCols(sSql));
	jtableData = jtable.getHtml();
	
	du.close();
%>
</head>
<body>
<!-- content -->
  	<div id="jtableContainer" class="mg20 mt100 mb0"></div>
</body>
<script type="text/javascript">
$(function() {
	$(function(){
		var jtable = new jDcp.web.Table();
		jtable.parse("<%=jtableData %>");
		jtable.appendTo("jtableContainer");
		jtable.hideButton(jDcp.web.Table.BUTTON_ADD);
		jtable.hideButton(jDcp.web.Table.BUTTON_DELETE);
		jtable.hideButton(jDcp.web.Table.BUTTON_SAVE);
		jtable.setEdit(false);
	});
});
</script>
</html>